<template>
    <div class="container">
        <div class="login-btn" @click="doLogin">确认登录</div>
    </div>
</template>
<script>
export default {
  methods: {
    doLogin() {
      this.showLoading();
      this.$post("/api/check_login", {
        token: this.$route.query.token || ""
      })
        .then(res => {
          this.$toast("验证成功");
          this.hideLoading();
        })
        .catch(_ => {
          this.hideLoading();
        });
    }
  }
};
</script>

<style lang="scss" scoped>
.login-btn {
  width: 2.6667rem;
  height: 0.6667rem;
  margin: 0 auto;
  border-radius: 0.2rem;
  font-size: 0.4rem;
  border: 1px solid #eee;
  text-align: center;
  padding: 0.2rem 0;
  color: white;
  background-color: #24c76f;
  margin-top: 3rem;
  line-height: 0.6667rem;
}
</style>
